import request from '@/utils/request'

// 查询排期分区优惠信息列表
export function listSchedulePromoArea(query) {
  return request({
    url: '/cinema/schedulePromoArea/list',
    method: 'get',
    params: query
  })
}

// 查询排期分区优惠信息详细
export function getSchedulePromoArea(id) {
  return request({
    url: '/cinema/schedulePromoArea/' + id,
    method: 'get'
  })
}

// 新增排期分区优惠信息
export function addSchedulePromoArea(data) {
  return request({
    url: '/cinema/schedulePromoArea',
    method: 'post',
    data: data
  })
}

// 修改排期分区优惠信息
export function updateSchedulePromoArea(data) {
  return request({
    url: '/cinema/schedulePromoArea',
    method: 'put',
    data: data
  })
}

// 删除排期分区优惠信息
export function delSchedulePromoArea(id) {
  return request({
    url: '/cinema/schedulePromoArea/' + id,
    method: 'delete'
  })
}

// 导出排期分区优惠信息
export function exportSchedulePromoArea(query) {
  return request({
    url: '/cinema/schedulePromoArea/export',
    method: 'get',
    params: query
  })
}